import request from '../../utils/request2'

function getProjectTree(data) {
    return request({
        url: '/jianli/position/tree',
        method: 'post',
        data: { parameters: data }
    })
}
function addPosition(data) {
    return request({
        url: '/jianli/position/add',
        method: 'post',
        data: { parameters: data }
    })
}
function getPosition(data) {
    return request({
        url: '/jianli/position/get',
        method: 'post',
        data: { parameters: data }
    })
}
function delPosition(data) {
    return request({
        url: '/jianli/position/delete',
        method: 'post',
        data: { parameters: data }
    })
}
function setPosition(data) {
    return request({
        url: '/jianli/position/updata',
        method: 'post',
        data: { parameters: data }
    })
}


export {
    getProjectTree,
    addPosition,
    getPosition,
    delPosition, 
    setPosition
}